<?php
$config=array();
$config["libFilePathList"]=array(
	"./module/util/Builder.js",
	"./module/util/PatternBuilder.js",
	"./module/util/Validator.js",
	"./module/util/BrowserController.js",
	"./module/util/DateUtils.js",
	"./module/util/RuleParser.js",
	
	"./module/control/Control.js",
	"./module/control/A.js",
	"./module/control/Table.js",
	"./module/control/EditableTable.js",
	"./module/control/Iframe.js",
	
	"./module/control/FocusList.js",
	"./module/control/FocusListItem.js",
	
	
	"./module/control/Input.js",
	"./module/control/TextInput.js",
    "./module/control/NumberInput.js",
	"./module/control/IntInput.js",
	"./module/control/DateInput.js",
	"./module/control/TimeInput.js",
	"./module/control/Select.js",
	"./module/control/CheckboxGroup.js",
	"./module/control/RadioGroup.js",
	"./module/control/SelectGroup.js",
	"./module/control/AttachmentView.js",
	
	"./module/control/SearchGroup.js",
	"./module/control/Form.js",
	
	"./module/control/Console.js",
	"./module/control/Container.js",
	"./module/control/Birdge.js",
	"./module/control/Masker.js",
	"./module/control/Loading.js",
	"./module/control/ProgressBar.js",
	"./module/control/LetterCatalog.js",
	"./module/control/Messager.js",

	"./module/control/Dialog.js",
	"./module/control/FrameWindow.js",
	
	"./module/control/SafeCode.js",
	
	"./module/control/Tabs.js",
	"./module/control/Accordion.js",
	"./module/control/Pagination.js",
	"./module/control/Nav.js",
	"./module/control/AsynList.js",
	"./module/control/Focus.js",
	"./module/control/Calendar.js",
	
	
	"./module/page/Page.js",
	"./module/page/ListPage.js",
    "./module/page/SelectorPage.js",
	"./module/page/FormPage.js",
	"./module/page/DetailPage.js"
);

$context=file_get_contents("./HTMLTurboContext.js")."\n";
$content="";
foreach($config["libFilePathList"] as $libFilePath){
	$content.=file_get_contents($libFilePath)."\n";
};
$content=str_replace("{content}",$content,$context);
$content.=file_get_contents("./init.js")."\n";
header("Content-type: application/javascript");


$myfile = fopen("./HTMLTurbo.js", "w");
fwrite($myfile, $content);

echo $content;
?>